package com.haikesi.api.menuauthority.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @ClassName: MenuAuthorityTreeSearchVO
 * @program: haikesi-platform-apis
 * @Author: TanJun
 * @Date: 2019/5/6 16:58
 * @Description: 菜单树形查询参数对象
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MenuAuthorityTreeSearchVO implements Serializable {

    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "菜单名称")
    private String authorityName;

    @ApiModelProperty(value = "菜单上级ID")
    private String parentId;

    @ApiModelProperty(value = "菜单类型")
    private Integer authorityType;

    @ApiModelProperty(value = "权限唯一标识")
    private String authoritySign;

    @ApiModelProperty(value = "权限图标")
    private String authorityIcon;

    @ApiModelProperty(value = "菜单URL")
    private String menuUrl;


//    @ApiModelProperty(value = "页数")
//    private Integer pageNum;
//    @ApiModelProperty(value = "每页行数")
//    private Integer pageSize;
//
//    public Integer getPageNum() {
//        if(pageNum == null){
//            pageNum = 1;
//        }
//        return pageNum;
//    }
//    public Integer getPageSize() {
//        if(pageSize == null){
//            pageSize = 20;
//        }
//        if(pageSize > 100){
//            pageSize = 100;
//        }
//        return pageSize;
//    }

}
